//
//  ArrayExtension.swift
//  NewsApp
//
//  Created by 吴祥民 on 2024/1/1.
//

import Foundation

extension Array {
    public init(generating elementGenerator: (Int) -> Element, count: Int){
        self = (0..<count).map(elementGenerator)
    }
}

